{extend name="public/base" /} {block name="body"}
<div class="content-tabs">
	<ol class="breadcrumb">
		<li>
			<a href="{:url('index/index')}"><i class="fa fa-home"></i></a>
		</li>
		<li><strong>访问购买率</strong></li>
	</ol>
</div>
<div class="ibox float-e-margins">
	
	{include file="visit/top"}
	<div class="ibox-content">
		<form id="myForm" class="form-horizontal m-t" method="post" action="{:url('index',['p'=>$p])}">	
			<div class="form-group">
				&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
				商品名称<input type="text" id="name" name="name" value="" placeholder="请输入商品名称" class="bank" />				
				<span ><button type="submit" class="btn btn-sm btn-primary"> 查询</button> </span>
				
			</div>
		</from>
		<div class="hr-line-dashed"></div>
		<div class="example-wrap">
			<div class="example">
				
					<table class="table table-bordered table-hover">
						<thead>
							<tr class="long-th">
							
								<th>商品名称</th>
								<th>点击量</th>
								<th>销量</th>
								<th>销量/点击</th>
								<th>排名</th>
							</tr>
						</thead>
							{foreach name="list" item="vo" key="k"}
							<tr class="long-th">
								<td class="text-center">{$vo.name}</td>
								<td class="text-center">{$vo.click}</td>
								<td class="text-center">{$vo.sales}</td>
								<td class="text-center">{$vo.P}%</td>
								<td class="text-center">{$k+1}</td>
							</tr>
							{/foreach}
					</table>
				
			</div>
		</div>
	</div>
</div>

<script src="__LIB__/datepicker/WdatePicker.js"></script>
{/block} {block name="script"}
<script>
	//顶部导航 
if({$p}==1){	
	$("#li-bar-si").addClass("active");
}
if({$p}==2){
	$("#li-bar-site").addClass("active");
  }
if({$p}==3){
	$("#li-bar-sms").addClass("active");
  }
if({$p}==4){
	$("#li-bar-pay").addClass("active");
  }

	
</script>
<style>
.bank{
	width: 150px;
    height:30px;
    text-align:center;
    border-radius:5px;
}
</style>
{/block}